<?php
/* @var $this HousingController */
/* @var $model Housing */

$this->breadcrumbs=array(
	'Housings'=>array('index'),
	'Create',
);

$this->menu=array(
	array('label'=>'List Housing', 'url'=>array('index')),
	array('label'=>'Manage Housing', 'url'=>array('admin')),
);
?>
<?php
Yii::app()->clientScript->registerCoreScript('jquery.ui');
$cs=Yii::app()->getClientScript();
$cs->registerCssFile($cs->getCoreScriptUrl().'/jui/css/base/jquery-ui.css');

$cs->registerScriptFile('/elrte/js/elrte.min.js');
$cs->registerScriptFile('/elrte/js/i18n/elrte.ru.js');
$cs->registerCssFile('/elrte/css/elrte.min.css');
$cs->registerCssFile('/elrte/css/smoothness/jquery-ui-1.8.13.custom.css');

$cs->registerScript('#Article_text_ru',"jQuery().ready(function() {
     var opts = {
         lang         : 'ru',    // set your language
         styleWithCSS : false,
         height       : 400,
         toolbar      : 'maxi' // 'maxi' - расширенная версия тулбара
     };
     // create editor
     jQuery('#Housing_about_en').elrte(opts);
     jQuery('#Housing_about_ru').elrte(opts);
     jQuery('#Housing_about_uk').elrte(opts);
     jQuery('#Housing_about_ja').elrte(opts);
 });");
?>
<h1>Create Housing</h1>

<?php $this->renderPartial('_form', array('model'=>$model, 'selector'=>$selector)); ?>